/* 新的卡片样式 */
.card {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e5 100%);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.2), inset 0 -2px 4px rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    aspect-ratio: 9/16;
    display: flex;
    flex-direction: column;
    border: 3px solid transparent;
    border-image: linear-gradient(135deg, #ffdab9, #e8d5b5);
    border-image-slice: 1;
    transform-style: preserve-3d;
    perspective: 1000px;
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-15px) rotate(-2deg) scale(1.03);
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.3);
    border-image: linear-gradient(135deg, #ffd700, #ffa500);
    border-image-slice: 1;
    filter: brightness(1.08);
    animation: shimmer 3s infinite linear;
}

.card-header {
    background: linear-gradient(135deg, #8B0000 0%, #a50000 100%);
    color: #fff;
    padding: 20px;
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
    flex-shrink: 0;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.5);
    border-bottom: 4px solid #5a0000;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    padding-bottom: 25px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.1"><path d="M0,50 L100,50 M50,0 L50,100" stroke="%23ffffff" stroke-width="1"/></svg>');
}

.quote {
    font-size: 1.6rem;
    line-height: 1.9;
    margin-bottom: 25px;
    font-style: italic;
    color: #5a0000;
    font-family: "STKaiti", "KaiTi", serif;
    padding: 0 15px;
    position: relative;
    text-shadow: 0 0 1px rgba(139, 0, 0, 0.2);
    font-weight: bold;
}

.quote::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -25px;
    left: -15px;
    color: rgba(139, 0, 0, 0.2);
    text-shadow: 2px 2px 3px rgba(255, 215, 0, 0.3);
}

.quote::after {
    content: '"';
    font-size: 4rem;
    position: absolute;
    bottom: -45px;
    right: -15px;
    color: rgba(139, 0, 0, 0.2);
    text-shadow: 2px 2px 3px rgba(255, 215, 0, 0.3);
}

.card-body {
    padding: 35px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    position: relative;
    overflow: hidden;
}

.card-body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.card:hover .card-body::before {
    opacity: 1;
}

.context {
    font-size: 1.1rem;
    color: #444;
    border-left: 4px solid #8B0000;
    padding-left: 20px;
    flex-grow: 1;
    text-align: left;
    line-height: 1.7;
    font-family: "Microsoft YaHei", sans-serif;
    position: relative;
    background: linear-gradient(90deg, rgba(255, 218, 185, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    padding: 10px 10px 10px 20px;
    border-radius: 0 10px 10px 0;
    z-index: 1;
}

.download-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff8c00 0%, #ff4500 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.95;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 140, 0, 0.5);
    z-index: 2;
    font-weight: bold;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.download-btn:hover {
    opacity: 1;
    background: linear-gradient(135deg, #ff4500 0%, #ff8c00 100%);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 140, 0, 0.6);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
    letter-spacing: 1.2px;
}

.container .card:nth-child(odd) {
    animation: pulse 6s infinite ease-in-out;
    animation-delay: 0.5s;
}

.container .card:nth-child(even) {
    animation: pulse 6s infinite ease-in-out;
    animation-delay: 3s;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(139, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 15px 30px rgba(139, 0, 0, 0.3), 0 0 15px rgba(255, 215, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(139, 0, 0, 0.2);
    }
}